﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Nevernote_client
{
    
    public partial class Rename : Form
    {

        public Rename()
        {
            InitializeComponent();
        }
        public string newname = "";
        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            newname = textBox1.Text;
            this.Close();
        }
        public void file_or_dir(TreeNode node)
        {
            if (node.Text.EndsWith(".txt"))
                newname_label.Text = "新文件名:";
            else
                newname_label.Text = "新文件夹名:";
        }
    }
}
